<!DOCTYPE HTML>
<html>
<head>
    <title>安置帮教社会关系页面</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="/webjars/miniui/boot.js" type="text/javascript"></script>
    <link href="/static/css/resource.css" rel="stylesheet" type="text/css" />
    <link href="/static/css/default.css" rel="stylesheet" type="text/css" />
    <script src="/static/js/common/common.js" type="text/javascript"></script>
</head>
<style>
    .delBtn {
        border:1px solid #ff2120;
        border-radius:10px;
        font-size:8px;
        line-height:20px;
        font-weight:bold;
        color:#ff4634;
    }
    .editBtn {
        border:1px solid #018d00;
        border-radius:10px;
        font-size:8px;
        line-height:20px;
        font-weight:bold;
        color:#00a60a;
    }
    .legend {
        font-size:16px;
    }
</style>
<body>
<div class="mini-fit">
    <#--罪犯编号-->
    <input id="priNum" name="priNum" class="mini-hidden" value="${priNum!''}" />
    <div class="legend" style="height:100%;">
        <div style="width: 100%">
            <table class="form-table" disabled="true">
                <tr>
                    <td align="left" width="20%" style=" color: #8B8B8B;line-height:30px;">姓&emsp;&emsp;名:</td>
                    <td align="left" width="30%" disabled=true style="color: #8B8B8B;">
                        <span class="check-content-7395">${pname!''}</span>
                    </td>
                    <td align="left" width="20%" style=" color: #8B8B8B;line-height:30px;">证件号:</td>
                    <td align="left" width="30%" style=" color: #8B8B8B;">
                        <span class="check-content-7395">${idnum!''}</span>
                    </td>
                </tr>
            </table>
        </div>
        <div class="legend">配偶、父母或其他:</div>
        <div id="datagrid1" class="mini-datagrid" style="margin: 10px;width: 95%;" ajaxType="get"
             multiSelect="false" autoload="true"
             sizeList="[20,50,100]" pageSize="50" virtualScroll="false" showLoading="true" showPager="false"
             idField="id" url="/azbj/bjdxInfo/qbrygl/addBaseInfo/getShgxList?priNum=${priNum!''}">
            <div property="columns">
                <div name="name" field="name" width="60px" align="center" headerAlign="center"
                     allowSort="false">姓名
                </div>
                <div name="relation" field="relation" width="60px" align="center" headerAlign="center"
                     allowSort="false">关系
                </div>
                <#--出生日期只显示年月日-->
                <div name="age" field="age" width="60px" align="center" headerAlign="center"
                     dateFormat="yyyy-MM-dd"
                     allowSort="false">出生日期
                </div>
                <div name="danwei" field="danwei" width="120px" align="center" headerAlign="center"
                     allowSort="false">
                    工作单位
                </div>
                <div name="addr" field="addr" width="120px" align="center" headerAlign="center" allowSort="false">
                    家庭住址
                </div>
                <div name="phone" field="phone" width="70px" align="center" headerAlign="center" allowSort="false"  renderer="setProvinces">手机号码
                </div>
                <div name="tel" field="tel" width="70px" align="center" headerAlign="center" allowSort="false">固话
                </div>
            </div>
        </div>
        <div class="legend">未成年子女信息:</div>
        <div id="grid1" class="mini-datagrid" style="margin: 10px;width: 95%;"
             sizeList="[5]" pageSize="5" showPager="false" autoload="true" url="/azbj/noadult/list"><#-- virtualColumns="true" -->
            <div property="columns">
                <div field="name" width="35" headerAlign="center" align="center">姓名</div>
                <div field="sex" width="20" headerAlign="center" align="center">性别</div>
                <div field="age" width="35" headerAlign="center" align="center">出生日期</div>
                <div field="kunnan" width="35" headerAlign="center" align="center">生活困难程度</div>
                <div field="liulang" width="25" headerAlign="center" align="center">流浪社会</div>
                <div field="jianhuren" width="35" headerAlign="center" align="center">监护人</div>
                <div field="shixue" width="20" headerAlign="center" align="center">失学</div>
                <div field="fanzui" width="25" headerAlign="center" align="center">违法行为</div>
                <div field="znsfid" width="50" headerAlign="center" align="center">身份证号</div>
                <div field="hujidi" width="50" headerAlign="center" align="center">户籍地</div>
                <div field="juzhudi" width="50" headerAlign="center" align="center">居住地址</div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    mini.parse();

    window.onload = function () {
        mini.get("grid1").load({querykey: "${priNum!''}"});
        mini.get("avc").setEnabled(false);
    }

    $(document).ready(function(){
        checkContent(1);
    });

    function setProvinces(e){
        var value = e.value;
        if(undefined == value || null == value || "" == value) {
            return "无";
        }
        return value;
    }
</script>
</body>
</html>